package com.niguang.labour.admin.entity;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 'work.v_personSite' is not BASE TABLE
 * </p>
 *
 * @author 
 * @since 2018-09-29
 */
@TableName("work_reform_apply")
public class WorkReformApply extends Model<WorkReformApply> {

    private static final long serialVersionUID = 1L;

	private Long id;
    /**
     * 整改表单ID
     */
	@TableField("content_id")
	private Long contentId;
    /**
     * 审核人公众号openId
     */
	@TableField("apply_open_id")
	private String applyOpenId;
    /**
     * 审核人用户id
     */
	@TableField("apply_user_id")
	private String applyUserId;
    /**
     * 审核人用户姓名
     */
	@TableField("apply_user_name")
	private String applyUserName;
    /**
     * 审核人电话号码
     */
	@TableField("apply_user_phone")
	private String applyUserPhone;
    /**
     * 审核人工作职位
     */
	@TableField("apply_job_position")
	private String applyJobPosition;
    /**
     * 隐患级别 1-一般 2-较大 3-重大 4-特大
     */
	@TableField("danger_level")
	private Integer dangerLevel;
    /**
     * 整改期限
     */
	@TableField("reform_term")
	private Date reformTerm;
    /**
     * 指派人id
     */
	@TableField("appoint_user_id")
	private String appointUserId;
    /**
     * 指派人姓名
     */
	@TableField("appoint_user_name")
	private String appointUserName;
    /**
     * 指派人手机号码
     */
	@TableField("appoint_user_phone")
	private String appointUserPhone;
    /**
     * 指派人职位
     */
	@TableField("appoint_job_position")
	private String appointJobPosition;
    /**
     * 隐患图片
     */
	@TableField("danger_pic")
	private String dangerPic;
    /**
     * 隐患描述
     */
	@TableField("danger_desc")
	private String dangerDesc;
    /**
     * 抄送人
     */
	@TableField("cc_user_name")
	private String ccUserName;
    /**
     * 抄送人ID
     */
	@TableField("cc_user_id")
	private String ccUserId;
    /**
     * 操作节点步骤 1-审核分发 2-整改处理 3-复查处理 4-整改驳回 5-转发
     */
	@TableField("node_step")
	private Integer nodeStep;
    /**
     * 审核状态 1-无需整改 2-待整改 3-通过 4-不通过
     */
	@TableField("apply_flag")
	private Integer applyFlag;
    /**
     * 是否处理 0-未处理 1-已处理
     */
	@TableField("deal_flag")
	private Integer dealFlag;
	@TableField("create_time")
	private Date createTime;
	@TableField("update_time")
	private Date updateTime;
    /**
     * 指派人openId
     */
	@TableField("appoint_open_id")
	private String appointOpenId;
    /**
     * 是否驳回 0--未驳回 1-驳回
     */
	@TableField("valid_flag")
	private Integer validFlag;
    /**
     * 1--安全隐患 2--质量隐患
     */
	@TableField("form_flag")
	private Integer formFlag;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getContentId() {
		return contentId;
	}

	public void setContentId(Long contentId) {
		this.contentId = contentId;
	}

	public String getApplyOpenId() {
		return applyOpenId;
	}

	public void setApplyOpenId(String applyOpenId) {
		this.applyOpenId = applyOpenId;
	}

	public String getApplyUserId() {
		return applyUserId;
	}

	public void setApplyUserId(String applyUserId) {
		this.applyUserId = applyUserId;
	}

	public String getApplyUserName() {
		return applyUserName;
	}

	public void setApplyUserName(String applyUserName) {
		this.applyUserName = applyUserName;
	}

	public String getApplyUserPhone() {
		return applyUserPhone;
	}

	public void setApplyUserPhone(String applyUserPhone) {
		this.applyUserPhone = applyUserPhone;
	}

	public String getApplyJobPosition() {
		return applyJobPosition;
	}

	public void setApplyJobPosition(String applyJobPosition) {
		this.applyJobPosition = applyJobPosition;
	}

	public Integer getDangerLevel() {
		return dangerLevel;
	}

	public void setDangerLevel(Integer dangerLevel) {
		this.dangerLevel = dangerLevel;
	}

	public Date getReformTerm() {
		return reformTerm;
	}

	public void setReformTerm(Date reformTerm) {
		this.reformTerm = reformTerm;
	}

	public String getAppointUserId() {
		return appointUserId;
	}

	public void setAppointUserId(String appointUserId) {
		this.appointUserId = appointUserId;
	}

	public String getAppointUserName() {
		return appointUserName;
	}

	public void setAppointUserName(String appointUserName) {
		this.appointUserName = appointUserName;
	}

	public String getAppointUserPhone() {
		return appointUserPhone;
	}

	public void setAppointUserPhone(String appointUserPhone) {
		this.appointUserPhone = appointUserPhone;
	}

	public String getAppointJobPosition() {
		return appointJobPosition;
	}

	public void setAppointJobPosition(String appointJobPosition) {
		this.appointJobPosition = appointJobPosition;
	}

	public String getDangerPic() {
		return dangerPic;
	}

	public void setDangerPic(String dangerPic) {
		this.dangerPic = dangerPic;
	}

	public String getDangerDesc() {
		return dangerDesc;
	}

	public void setDangerDesc(String dangerDesc) {
		this.dangerDesc = dangerDesc;
	}

	public String getCcUserName() {
		return ccUserName;
	}

	public void setCcUserName(String ccUserName) {
		this.ccUserName = ccUserName;
	}

	public String getCcUserId() {
		return ccUserId;
	}

	public void setCcUserId(String ccUserId) {
		this.ccUserId = ccUserId;
	}

	public Integer getNodeStep() {
		return nodeStep;
	}

	public void setNodeStep(Integer nodeStep) {
		this.nodeStep = nodeStep;
	}

	public Integer getApplyFlag() {
		return applyFlag;
	}

	public void setApplyFlag(Integer applyFlag) {
		this.applyFlag = applyFlag;
	}

	public Integer getDealFlag() {
		return dealFlag;
	}

	public void setDealFlag(Integer dealFlag) {
		this.dealFlag = dealFlag;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getAppointOpenId() {
		return appointOpenId;
	}

	public void setAppointOpenId(String appointOpenId) {
		this.appointOpenId = appointOpenId;
	}

	public Integer getValidFlag() {
		return validFlag;
	}

	public void setValidFlag(Integer validFlag) {
		this.validFlag = validFlag;
	}

	public Integer getFormFlag() {
		return formFlag;
	}

	public void setFormFlag(Integer formFlag) {
		this.formFlag = formFlag;
	}

	public static final String ID = "id";

	public static final String CONTENT_ID = "content_id";

	public static final String APPLY_OPEN_ID = "apply_open_id";

	public static final String APPLY_USER_ID = "apply_user_id";

	public static final String APPLY_USER_NAME = "apply_user_name";

	public static final String APPLY_USER_PHONE = "apply_user_phone";

	public static final String APPLY_JOB_POSITION = "apply_job_position";

	public static final String DANGER_LEVEL = "danger_level";

	public static final String REFORM_TERM = "reform_term";

	public static final String APPOINT_USER_ID = "appoint_user_id";

	public static final String APPOINT_USER_NAME = "appoint_user_name";

	public static final String APPOINT_USER_PHONE = "appoint_user_phone";

	public static final String APPOINT_JOB_POSITION = "appoint_job_position";

	public static final String DANGER_PIC = "danger_pic";

	public static final String DANGER_DESC = "danger_desc";

	public static final String CC_USER_NAME = "cc_user_name";

	public static final String CC_USER_ID = "cc_user_id";

	public static final String NODE_STEP = "node_step";

	public static final String APPLY_FLAG = "apply_flag";

	public static final String DEAL_FLAG = "deal_flag";

	public static final String CREATE_TIME = "create_time";

	public static final String UPDATE_TIME = "update_time";

	public static final String APPOINT_OPEN_ID = "appoint_open_id";

	public static final String VALID_FLAG = "valid_flag";

	public static final String FORM_FLAG = "form_flag";

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "WorkReformApply{" +
			"id=" + id +
			", contentId=" + contentId +
			", applyOpenId=" + applyOpenId +
			", applyUserId=" + applyUserId +
			", applyUserName=" + applyUserName +
			", applyUserPhone=" + applyUserPhone +
			", applyJobPosition=" + applyJobPosition +
			", dangerLevel=" + dangerLevel +
			", reformTerm=" + reformTerm +
			", appointUserId=" + appointUserId +
			", appointUserName=" + appointUserName +
			", appointUserPhone=" + appointUserPhone +
			", appointJobPosition=" + appointJobPosition +
			", dangerPic=" + dangerPic +
			", dangerDesc=" + dangerDesc +
			", ccUserName=" + ccUserName +
			", ccUserId=" + ccUserId +
			", nodeStep=" + nodeStep +
			", applyFlag=" + applyFlag +
			", dealFlag=" + dealFlag +
			", createTime=" + createTime +
			", updateTime=" + updateTime +
			", appointOpenId=" + appointOpenId +
			", validFlag=" + validFlag +
			", formFlag=" + formFlag +
			"}";
	}
}
